/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

module.exports = [
  {
    path: '/league',
    component: '../layouts/StatiscLayout',
    routes: [
      {
        name: '数据统计',
        path: '/league/statistics',
        component: './Statistics',
      },
      {
        name: '数据统计',
        path: '/league/chart',
        component: './Statistics/RealPage',
      },
      {
        name: '数据统计',
        path: '/league/chart-yz',
        component: './Statistics/yzPage',
      },
      {
        component: '404',
      },
    ],
  },
  {
    path: '/dashboard/:id/:platform?',
    name: '数据大屏',
    component: '../layouts/BigDataLayout',
    routes: [
      // {
      //   name: "驿站数据大屏",
      //   component: "./Post/BigScreen/YzScreen",
      // },
      {
        component: '404',
      },
    ],
  },
  {
    path: '/user',
    component: '../layouts/UserLayout',
    routes: [
      {
        name: '登录',
        path: '/user/login',
        component: './User/Login',
      },
      {
        name: '注册',
        path: '/user/register',
        component: './User/Register',
      },
      {
        name: '忘记密码',
        path: '/user/forget',
        component: './User/Register',
      },
      {
        name: '数据统计',
        path: '/user/league/statistics',
        component: './Statistics',
      },
      {
        component: '404',
      },
    ],
  },
  {
    path: '/help',
    component: '../layouts/ArticleLayout',
    routes: [
      {
        name: '服务协议',
        path: '/help/service-pro',
        component: './Help/ServicePro',
      },
      {
        name: '快宝共配软件服务协议',
        path: '/help/GpAgreement',
        component: './Help/GpAgreement',
      },
      {
        name: '快宝云打印',
        path: '/help/KbPintBox',
        component: './Help/KbPintBox',
      },
      {
        component: '404',
      },
    ],
  },
  {
    path: '/',
    component: '../layouts/BasicLayout',
    routes: [
      { path: '/', redirect: '/system/info' },
      {
        name: '快宝驿站',
        icon: 'bank',
        path: '/post',
        authority: 'post',
        routes: [
          {
            name: '超级搜索',
            path: '/post/advanced',
            component: './Post/Advanced',
          },
          {
            name: '站点管理',
            name_yz: '驿站管理',
            path: '/post/area',
            component: './Post/Area',
          },
          {
            hideInMenu: true,
            path: '/post/area/postDetail',
            name: '详情',
            component: './Post/PostDetail',
          },
          {
            name: '库存记录',
            path: '/post/inventoryManagement',
            component: './Post/InventoryManagement',
          },
          {
            name: '数据统计',
            path: '/post/list',
            component: './Post/List',
          },
          {
            name: '服务费与保管费',
            path: '/post/dispat',
            component: './Post/Dispat',
          },
          {
            name: '快递费管理',
            path: '/post/express',
            component: './Post/Express',
          },
          {
            name: '投诉与黑名单',
            path: '/post/complantBlackList',
            component: './Post/ComplantBlackList',
          },
          {
            name: '数据导出',
            path: '/post/export',
            component: './Post/CreateReports',
          },
          {
            name: '设置和管理',
            path: '/post/setup',
            component: './Post/Setup/index',
          },
          {
            name: '驿站数据大屏',
            path: '/post/bigData',
            component: './Post/YzScreenManagement',
          },
          {
            component: '404',
          },
        ],
      },
      {
        name: '快宝共配',
        icon: 'tool',
        path: '/Allocation',
        authority: 'allocation',
        component: '../layouts/GpAuthLayout',
        routes: [
          {
            name: '巴枪扫描配置',
            authority: 'allocation/postOption',
            path: '/Allocation/PostOption',
            component: './Allocation/PostOption',
          },
          {
            name: '快件信息下发',
            authority: 'allocation/fastMsg',
            path: '/Allocation/fastMsg',
            component: './Fast/FastMsg',
          },
          {
            name: '共配数据总览',
            path: '/Allocation/OverView',
            component: './Allocation/OverView',
          },
          {
            name: '巴枪扫描记录',
            path: '/Allocation/GunScanRecord',
            component: './Allocation/GunScanRecord',
          },
          {
            name: '数据统计',
            authority: 'allocation/statistics',
            path: '/Allocation/DataStatistics',
            component: './Allocation/DataStatistics',
          },
          {
            name: '派费直发',
            path: '/Allocation/Dispat',
            component: './Allocation/Dispat',
          },
          {
            name: '数据监控',
            path: '/Allocation/DataMonitor',
            component: './Allocation/DataMonitor',
          },
          {
            name: '业务员看板',
            path: '/Allocation/OperatorKanban',
            component: './Allocation/OperatorKanban',
          },
          {
            name: '自定义扫描',
            authority: 'allocation/customScan',
            path: '/Allocation/CustomScan',
            component: './Allocation/CustomScan',
          },
          {
            name: '共配权限管理',
            authority: 'allocation/authSet',
            path: '/Allocation/AuthorityManagement',
            component: './Allocation/AuthorityManagement',
          },
          {
            name: '共配加速器',
            path: '/Allocation/PrintKey',
            component: './Allocation/PrintKey',
          },
          {
            component: '404',
          },
        ],
      },
      {
        name: '自动化',
        icon: 'setting',
        authority: 'automatic',
        path: '/automatic',
        routes: [
          {
            name: '分拣线配置',
            path: '/automatic/sortLineConfiguration',
            component: './Automatic/SortLineConfiguration',
          },
          {
            name: '格口配置',
            path: '/automatic/gridConfiguration',
            component: './Automatic/GridConfiguration',
          },
          {
            name: '地址方案',
            path: '/automatic/AddressSort',
            component: './Automatic/AddressSort',
          },
          {
            name: '进港分拣',
            path: '/automatic/arrivalSorting',
            component: './Automatic/ArrivalSorting',
          },
          {
            name: '格口统计',
            path: '/automatic/gridStatistics',
            component: './Automatic/GridStatistics',
          },
          {
            component: '404',
          },
        ],
      },
      {
        name: '快宝同城',
        icon: 'global',
        path: '/business',
        authority: 'business',
        routes: [
          {
            name: '单号设置',
            path: '/business/orderNumSet',
            component: './Business/OrderNumSet',
          },
          {
            name: '同城订单',
            path: '/business/order',
            component: './Business/Order',
          },
          {
            name: '扫描记录统计',
            path: '/business/scanning',
            component: './Business/Scanning',
          },
          {
            name: '扫描记录查询',
            path: '/business/query',
            component: './Business/Query',
          },
          {
            component: '404',
          },
        ],
      },
      {
        name: '即时配送',
        icon: 'coffee',
        path: '/delivery',
        authority: 'delivery',
        routes: [
          {
            name: '配送员设置',
            path: '/delivery/setting',
            component: './Delivery/Setting',
          },
          {
            name: '配送费计价',
            path: '/delivery/valuation',
            component: './Delivery/Valuation',
          },
          {
            name: '配送范围',
            path: '/delivery/scope',
            component: './Delivery/Scope',
          },
          {
            name: '订单调度',
            path: '/delivery/allot',
            component: './Delivery/Allot',
          },
          {
            name: '历史订单',
            path: '/delivery/history',
            component: './Delivery/History',
          },
          {
            name: '订单数据',
            path: '/delivery/order',
            component: './Delivery/Order',
          },
          {
            name: '配送费结算',
            path: '/delivery/cost',
            component: './Delivery/Cost',
          },
        ],
      },
      {
        name: '寄件管理',
        icon: 'file-protect',
        path: '/order',
        authority: 'orders',
        routes: [
          {
            name: '订单概览',
            path: '/order/worktop',
            component: './Order/Worktop',
          },
          {
            name: '订单明细',
            path: '/order/orderDetails',
            component: './Order/OrderDetails',
          },
          {
            name: '代收货款管理',
            path: '/order/payment',
            component: './Order/Payment',
          },
          {
            name: '单号源设置',
            path: '/order/setter',
            component: './Order/Setter',
          },
          {
            name: '单号使用记录',
            path: '/order/record',
            component: './Order/Record',
          },
          {
            name: '报价单设置',
            path: '/order/finance',
            component: './Order/Finance',
          },
          {
            name: '导出对账单',
            path: '/order/export',
            component: './Order/ExportOrder',
          },
          {
            name: '新建报价单',
            path: '/order/finance/finance_add',
            component: './Order/Finance/detail/addNew',
            hideInMenu: true,
          },
          {
            name: '编辑报价单',
            path: '/order/finance/finance_edit',
            component: './Order/Finance/detail/editDetail',
            hideInMenu: true,
          },
          {
            component: '404',
          },
        ],
      },
      {
        name: '微信管理',
        icon: '#wechat',
        authority: 'platform',
        path: '/platform',
        routes: [
          {
            name: '数据中心',
            path: '/platform/datacenter',
            component: './Platform/DataCenter',
          },
          {
            name: '群发推送',
            path: '/platform/masspush',
            component: './Platform/MassPush',
          },
          {
            name: '二维码',
            path: '/platform/qrcode',
            component: './Platform/QrCode',
          },
          {
            name: '设置',
            path: '/platform/setting',
            component: './Platform/Setting',
          },
        ],
      },
      {
        name: '工单系统',
        icon: 'desktop',
        path: '/workOrder',
        component: './WorkOrder/WorkOrder',
      },
      {
        name: '报表下载',
        icon: 'download',
        authority: 'downloadReport',
        path: '/downloadReport',
        component: './Post/Report',
      },
      {
        name: '网站导航',
        icon: 'desktop',
        path: '/Guide',
        component: './Guide',
        hideInMenu: true,
      },
      {
        name: '数据开放平台',
        icon: 'cloud-server',
        path: 'https://open.tongdiyiyou.com',
        target: '_blank',
        authority: 'fund',
      },
      {
        name: '快宝云店',
        icon: 'tag',
        path: 'https://mall.tongdiyiyou.com',
        target: '_blank',
        authority: 'fund',
      },
      {
        name: '智能硬件',
        icon: 'printer',
        path: '/help/KbPintBox',
        target: '_blank',
        authority: 'fund',
      },
      {
        name: '资金账户',
        icon: 'wallet',
        path: '/finance/account',
        authority: 'finance',
        component: '../layouts/PermissionLayout',
        routes: [
          {
            component: './Finance/Account',
          },
          {
            component: '404',
          },
        ],
      },
      {
        name: '财务管理',
        icon: 'pay-circle',
        path: 'https://cityfinance.kuaidihelp.com',
        target: '_blank',
        authority: 'fund',
      },
      {
        name: '基础数据',
        icon: 'database',
        path: '/system',
        authority: 'system',
        routes: [
          {
            name: '片区',
            path: './business/station',
            component: './Business/Station',
          },
          {
            name: '网点信息',
            path: './business/outlets',
            component: './Business/Outlets',
          },
          {
            name: '业务员',
            path: './business/operator',
            component: './Business/Operator',
          },
          {
            name: '公司信息',
            path: '/system/info',
            component: './System/Info',
          },
          {
            name: '客户管理',
            path: './business/client',
            component: './Business/Client',
          },
          {
            component: '404',
          },
        ],
      },
      {
        name: '平台设置',
        icon: 'setting',
        path: '/set',
        routes: [
          {
            name: '安全设置',
            path: '/set/safe',
            component: './System/ModifyPassword',
            authority: 'set/safe',
          },
          {
            name: '账号管理',
            path: '/set/accounts',
            component: './Set/Accounts',
            authority: 'account',
          },
          {
            component: '404',
          },
        ],
      },
      {
        name: '新闻中心',
        icon: 'profile',
        path: '/news',
        authority: 'system',
        hideInMenu: true,
        routes: [
          {
            component: './News/News',
          },
          {
            component: '404',
          },
        ],
      },
      {
        component: '404',
      },
    ],
  },
];
